package com.taplinker.client.im.rpc;

import com.taplinker.client.im.domain.ImDataCenter;
import com.taplinker.client.im.rpc.body.Cmd010Req;
import com.taplinker.core.rpc.Result;

public class Cmd011  extends SimpleSocketCommand<Cmd010Req>{
	public Cmd011(String conversationId,String content,long to) {
		body = new Cmd010Req();
		body.setContent(content);
		body.setConversationId(conversationId);
		body.setTo(to);
	}
	
	@Override
	public void yes(Result result) {
		super.yes(result);
		ImDataCenter.getInstance().removeConversationByIdFromPub(body.getConversationId());
		ImDataCenter.getInstance().noticeListener(ImDataCenter.APPOINT_FINISH);
	}

	@Override
	protected String getCommand() {
		return "011";
	}
}
